<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>环环相扣</title>
    <style>
        .wrap {
            width: 600px;
            height: 300px;
            border: 2px solid red;
            transform-style: preserve-3d;
        }
        .ring {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            float: left;
        }
        .tomato {
            border: 10px solid tomato;
            margin-right: -60px;
        }
        .skyblue {
            border: 10px solid skyblue;
            /* 蓝色环向x轴旋转 */
            transform: rotateX(1deg);
        }
    </style>
</head>
<body>
    <div class="wrap">
        <div class="ring tomato"></div>
        <div class="ring skyblue"></div>
    </div>
</body>
</html>
